package com.mall.mapper;

import com.mall.po.Goods;
import com.mall.po.GoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
/**
 * @ClassName GoodsMapper
 * @Description TODO
 * @author XueWanglin
 * @Date 2021/1/5 20:33
 * @Version 1.0
 */
public interface GoodsMapper {
    int countByExample(GoodsExample example);

    int deleteByExample(GoodsExample example);

    int deleteByPrimaryKey(Integer goodsid);

    int insert(Goods record);

    int insertSelective(Goods record);

    List<Goods> selectByExample(GoodsExample example);

    Goods selectByPrimaryKey(Integer goodsid);

    int updateByExampleSelective(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByExample(@Param("record") Goods record, @Param("example") GoodsExample example);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    List<Goods> selectGoodsListByPage(@Param("page") int page,@Param("num") int num);

    int delGoodsListById(Integer[] ids);
}